import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Admin
 * Date: 2022-04-28
 * Time: 21:50
 */
public class TestDemo1 {

        public static void main(String[] args) throws Exception {
            Scanner scanner = new Scanner(System.in);
            while (scanner.hasNext()) {
                String className = scanner.next();
                // print就是需要你定义的方法
                print(Class.forName(className).newInstance());
            }
        }

        public static void print(Object object) {
            System.out.println(object.getClass().getName());
        }

    }

    class First {
        public String toString() {
            return "First";
        }
    }

    class Second {
        public String toString() {
            return "Second";
        }
    }

    class Third {
        public String toString() {
            return "Third";
        }

}